package com.soento.sample.ssm.bean.entity;

import com.soento.core.lang.BaseObject;
import lombok.Getter;
import lombok.Setter;
import org.apache.ibatis.type.JdbcType;
import tk.mybatis.mapper.annotation.ColumnType;

import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
public class TestEntity extends BaseObject {
    /**
     * 姓名
     */
    @ColumnType(column = "name", jdbcType = JdbcType.VARCHAR)
    private String name;
    /**
     * 年龄
     */
    @ColumnType(column = "age", jdbcType = JdbcType.INTEGER)
    private Long age;
    /**
     * 月薪
     */
    @ColumnType(column = "salary", jdbcType = JdbcType.NUMERIC)
    private BigDecimal salary;
    /**
     * 出生日期
     */
    @ColumnType(column = "birthday", jdbcType = JdbcType.TIMESTAMP)
    private Date birthday;

}
